<!DOCTYPE html PUBLIC"-// W3C//DTD XHTML 1.0 Transitional//EN"" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0061)http://www.free-wordpress-theme.net/demo/?themedemo=persimmon -->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">  
<head>    
<meta name="layout" content="mainlayout" />
</head>

  <body>


      <div id="pbody">

        <hr>

        <div id="contentDiv">

          
		  <g:each in="${posts}" var="post">
   			<div class="spost" id="post-${post.id}">
            <h2 class="stitle">${post.title}</h2>
            <div class="entry">
              <div class="thumb">
              </div>
              <p>${post.content} &nbsp;
              <g:form action="more" controller="post" id="${post.id}">
              	<g:submitButton name="more" value="More" />
              </g:form>
              </p>	
              <p>
                Poids : 
              	<label id="likeLab${post.id}" style="margin-right:20px">
   						 ${post.likeUsers.size()}
   				</label>
   				<g:if test="${session.user}">
					<g:if test="${flash.message}">
				    	<div class="message">${flash.message}</div>
				    </g:if>
	  			    <g:remoteLink action="like" update="likeLab${post.id}" controller="post" id="${post.id}">
		              J'aime
		            </g:remoteLink>
	            </g:if>
  			  </p>
				
              
            	
            </div>	

          </div>

         </g:each>

          
        </div>

  </body></html>